package com.woniuxy.dao;

import com.woniuxy.vo.CampVO;
import org.springframework.data.elasticsearch.annotations.Query;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

public interface CampRepo extends ElasticsearchRepository<CampVO,Integer> {
    @Query("{\"bool\":{\"should\": [{\"match\": {\"campName\": \"?0\"}},{\"match\": {\"address\": \"?0\"}},{\"match\": {\"introduce\": \"?0\"}},{\"match\": {\"cityName\": \"?0\"}}]}}\n")
    List<CampVO> selectCampByExampleES(String kw);
}
